<?php
/* Template Name: Contact Page */
?>

<?php
/**
 * Layout Liên hệ
 */

get_header(); get_template_part('block', 'header-faculty');
$list_country = is_array(get_field('country')) ? get_field('country') : array();
?>
    <section class="fix">
        <div class="main-left">
            <div class="box-contact animated-area">
                <article class="item">
                    <div class="location animated" data-animation="fade-in-left" data-animation-delay="0.6s" data-animation-duration="1s">
                        <img src="<?php echo get_template_directory_uri(); ?>/images/map-56x116.jpg" width="56" height="116" alt=""/>
                    </div>
                    <div class="data animated" data-animation="fade-in-right" data-animation-delay="0.6s" data-animation-duration="1s">
                        <?php foreach($list_country as $country): if($country['branch'] == 'vi'):?>
                            <h3><?php echo $country['country'];?></h3>
                            <p>
                                <?php echo $country['address'];?>
                            </p>
                        <?php endif; endforeach;?>
                    </div>
                </article>
                <article class="item">
                    <div class="location animated" data-animation="fade-in-left" data-animation-delay="0.9s" data-animation-duration="1s">
                        <img src="<?php echo get_template_directory_uri(); ?>/images/map-83x85.jpg" width="83" height="85" alt=""/>
                    </div>
                    <div class="data animated" data-animation="fade-in-right" data-animation-delay="0.9s" data-animation-duration="1s">
                        <div class="data animated" data-animation="fade-in-right" data-animation-delay="0.6s" data-animation-duration="1s">
                            <?php foreach($list_country as $country): if($country['branch'] == 'autralia'):?>
                                <h3><?php echo $country['country'];?></h3>
                                <p>
                                    <?php echo $country['address'];?>
                                </p>
                            <?php endif; endforeach;?>
                        </div>
                    </div>
                </article>
            </div>
        </div>
        <div class="main-right">
            <?php get_template_part('block', 'register');?>
            <div class="map">
                <img src="<?php echo get_template_directory_uri(); ?>/images/map-300x126.jpg" width="300" height="126" alt=""/>
                <a href="" title="" class="btn-map"><?php echo TITLE_VIEW_MAP;?></a>
            </div>
        </div>
    </section>
    <section class="box-form">
        <div class="fix">
            <h3 class="title"><?php echo TITLE_CONTACT_NOW;?></h3>
            <div class="notice"><?php echo TITLE_CONTACT_NOW_2;?></div>
            <div class="data">
                <?php
                if(ICL_LANGUAGE_CODE == 'vi')
                    echo do_shortcode('[contact-form-7 id="295" title="Form liên hệ tiếng việt"]');
                else
                    echo do_shortcode('[contact-form-7 id="98" title="Form liên hệ Tiếng Anh"]');
                ?>
        </div>
    </section><!--//box-form-->
<?php get_footer(); ?>